package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @program: yygh_parent
 * @author: Mr.Zhuo
 * @create: 2022-03-11 22:20
 **/
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    Hospital findHospitalByHoscode(String hoscode);

    Hospital findHospNameByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
